package com.ctgu.zmc.stresstest.common.exception;


import java.io.Serializable;

/**
 * @author ZMC
 * @description 自定义异常类
 */
public class MyException extends RuntimeException implements Serializable {

    private static final long serialVersionUID = -3231811991228746734L;

    private String message;

    public MyException() {
        super();
    }

    public MyException(String message) {
        super(message);
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public static void throwException(String message) {
        throw new MyException(message);
    }

}